package com.daxiasoftware.xxx;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * mybatis-plus Spring Boot 测试 Demo<br>
 * 文档：http://mp.baomidou.com<br>
 */
@EnableTransactionManagement(proxyTargetClass = true)
@SpringBootApplication(scanBasePackages = {"com.daxiasoftware"})
// @PropertySource(value = {"file:/data/config/application.yml"})
public class Application extends SpringBootServletInitializer{

    protected final static Logger logger = LoggerFactory.getLogger(Application.class);

    public static void main(String[] args) {
//        SpringApplication app = new SpringApplication(Application.class);
//        app.setBannerMode(Banner.Mode.OFF);
//        app.run(args);
////		SpringApplication.run(Application.class, args);
//        logger.info("PortalApplication is success!");
//        System.err.println("sample started. http://localhost:8080/user/test");
        SpringApplication.run(Application.class, args);
        System.out.println("started");
    }

}
